package dms.repository;

import java.util.Date;


import dms.model.Building;
import dms.model.Dormitory;
import dms.model.form.LowElectricity;
import dms.model.form.Mail;
import dms.model.util.PageIterator;

public interface LowElectricityRepository {
	
	LowElectricity findById(Long id);
	
	PageIterator<LowElectricity> findByBuilding(int start, int count, Building building, Date fromDate, Date toDate);
	
	
	PageIterator<LowElectricity> findByDormitory(int start, int count, Dormitory dormitory, Date fromDate, Date toDate);
	
	LowElectricity createLowElectricity(LowElectricity lowElecInfo) throws Exception;
	
	LowElectricity updateLowElectricity(LowElectricity lowelecInfo) throws Exception;
	
	void deleteById(Long id) throws Exception;

}
